package com.Cychat.commons.feign;

import com.Cychat.commons.entity.ResultMessage;
import com.Cychat.commons.entity.pojo.Pet;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Auther: 谢宝辉  <br/>
 * Date: 2025/11/4:17:02  <br/>
 * Description: 宠物Feign服务
 */
@FeignClient(name = "Cychat-Java-pet", path = "/api/pet")
public interface PetFeignService {
    @GetMapping("/user/{userId}")
    ResultMessage<List<Pet>> getPetsByUserId(@PathVariable("userId") Long userId);

}
